<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body onload="checkCookies()">
    <h1>
        Tell your can uoed cookie!
    </h1>

    <script>
        function checkCookies() {
            if (navigator.cookieEnabled == true) {
                alert("Can used cookie");
            } else {
                alert("Can't use cookie");
            }
        }
    </script>
</body>
</html>